import ajax from './ajax'

const baseUrl = '/api'

export const roadAbout = (data) => ajax(`${baseUrl}/epidemic/trip`,data)
export const todayAbout = () => ajax(`${baseUrl}/epidemic/today`)
export const abroadAbout = () => ajax(`${baseUrl}/epidemic/abroad`)
export const newsAbout = () => ajax(`${baseUrl}/epidemic/news`)
export const register = (data) => ajax(`${baseUrl}/user/register`,data,'POST')
export const login = (data) => ajax(`${baseUrl}/user/login`,data,'POST')
export const healthDay = (data) => ajax(`${baseUrl}/user/Whealth`,data,'POST')
export const findHealth = () => ajax(`${baseUrl}/user/findHealth`)
export const allUser = (data) => ajax(`${baseUrl}/admin/user/list`,data)
export const findHealthDay = (data) => ajax(`${baseUrl}/admin/user/look`,data)